home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIWyciwygChannel.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  129 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWyciwygChannel.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWyciwygChannel_h__
  6. #define __gen_nsIWyciwygChannel_h__
  7.  
  8.  
  9. #ifndef __gen_nsIChannel_h__
  10. #include "nsIChannel.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIWyciwygChannel */
  19. #define NS_IWYCIWYGCHANNEL_IID_STR "280da566-6f19-4487-a8ca-70c5ba1602c1"
  20.  
  21. #define NS_IWYCIWYGCHANNEL_IID \
  22.   {0x280da566, 0x6f19, 0x4487, \
  23.     { 0xa8, 0xca, 0x70, 0xc5, 0xba, 0x16, 0x02, 0xc1 }}
  24.  
  25. /**
  26.  * A channel to  manage all cache-related interactions for layout
  27.  * when it is dealing with dynamic pages created through 
  28.  * document.write(). This interface provides methods that will
  29.  * help layout save dynamic pages in cache for future retrievals.
  30.  */
  31. class NS_NO_VTABLE nsIWyciwygChannel : public nsIChannel {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWYCIWYGCHANNEL_IID)
  35.  
  36.   /**
  37.    * Append data to the cache entry; opens the cache entry if necessary.
  38.    */
  39.   /* void writeToCacheEntry (in AString aData); */
  40.   NS_IMETHOD WriteToCacheEntry(const nsAString & aData) = 0;
  41.  
  42.   /**
  43.    * Close the cache entry; subsequent writes have undefined behavior.
  44.    */
  45.   /* void closeCacheEntry (in nsresult reason); */
  46.   NS_IMETHOD CloseCacheEntry(nsresult reason) = 0;
  47.  
  48.   /**
  49.    * Set the wyciwyg channels security info
  50.    */
  51.   /* void setSecurityInfo (in nsISupports aSecurityInfo); */
  52.   NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) = 0;
  53.  
  54. };
  55.  
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIWYCIWYGCHANNEL \
  58.   NS_IMETHOD WriteToCacheEntry(const nsAString & aData); \
  59.   NS_IMETHOD CloseCacheEntry(nsresult reason); \
  60.   NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo); 
  61.  
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  63. #define NS_FORWARD_NSIWYCIWYGCHANNEL(_to) \
  64.   NS_IMETHOD WriteToCacheEntry(const nsAString & aData) { return _to WriteToCacheEntry(aData); } \
  65.   NS_IMETHOD CloseCacheEntry(nsresult reason) { return _to CloseCacheEntry(reason); } \
  66.   NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return _to SetSecurityInfo(aSecurityInfo); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIWYCIWYGCHANNEL(_to) \
  70.   NS_IMETHOD WriteToCacheEntry(const nsAString & aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->WriteToCacheEntry(aData); } \
  71.   NS_IMETHOD CloseCacheEntry(nsresult reason) { return !_to ? NS_ERROR_NULL_POINTER : _to->CloseCacheEntry(reason); } \
  72.   NS_IMETHOD SetSecurityInfo(nsISupports *aSecurityInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSecurityInfo(aSecurityInfo); } 
  73.  
  74. #if 0
  75. /* Use the code below as a template for the implementation class for this interface. */
  76.  
  77. /* Header file */
  78. class nsWyciwygChannel : public nsIWyciwygChannel
  79. {
  80. public:
  81.   NS_DECL_ISUPPORTS
  82.   NS_DECL_NSIWYCIWYGCHANNEL
  83.  
  84.   nsWyciwygChannel();
  85.  
  86. private:
  87.   ~nsWyciwygChannel();
  88.  
  89. protected:
  90.   /* additional members */
  91. };
  92.  
  93. /* Implementation file */
  94. NS_IMPL_ISUPPORTS1(nsWyciwygChannel, nsIWyciwygChannel)
  95.  
  96. nsWyciwygChannel::nsWyciwygChannel()
  97. {
  98.   /* member initializers and constructor code */
  99. }
  100.  
  101. nsWyciwygChannel::~nsWyciwygChannel()
  102. {
  103.   /* destructor code */
  104. }
  105.  
  106. /* void writeToCacheEntry (in AString aData); */
  107. NS_IMETHODIMP nsWyciwygChannel::WriteToCacheEntry(const nsAString & aData)
  108. {
  109.     return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111.  
  112. /* void closeCacheEntry (in nsresult reason); */
  113. NS_IMETHODIMP nsWyciwygChannel::CloseCacheEntry(nsresult reason)
  114. {
  115.     return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117.  
  118. /* void setSecurityInfo (in nsISupports aSecurityInfo); */
  119. NS_IMETHODIMP nsWyciwygChannel::SetSecurityInfo(nsISupports *aSecurityInfo)
  120. {
  121.     return NS_ERROR_NOT_IMPLEMENTED;
  122. }
  123.  
  124. /* End of implementation class template. */
  125. #endif
  126.  
  127.  
  128. #endif /* __gen_nsIWyciwygChannel_h__ */
  129.